package vn.vfriends.soffice.service.impl;

import java.util.List;
import javax.inject.Inject;
import vn.vfriends.soffice.entity.Group;
import vn.vfriends.soffice.facade.GroupFacade;
import vn.vfriends.soffice.service.GroupService;

/**
 *
 * @author chaungoctuan@gmail.com
 */
public class GroupServiceImpl implements GroupService {

    @Inject private GroupFacade groupFacade;
    
    @Override
    public void create(Group group) throws Exception {
        groupFacade.create(group);
    }

    @Override
    public void edit(Group group) throws Exception {
        groupFacade.edit(group);
    }

    @Override
    public void remove(Group group) throws Exception {
        groupFacade.remove(group);
    }

    @Override
    public Group find(Object id) {
        return groupFacade.find(id);
    }

    @Override
    public List<Group> findAll() {
        return groupFacade.findAll();
    }

    @Override
    public Group findByCode(String code) {
        return groupFacade.findByCode(code);
    }
    
    @Override
    public Group findByName(String name) {
        return groupFacade.findByName(name);
    }

    @Override
    public List<Group> findRange(int[] range) {
        return groupFacade.findRange(range);
    }

    @Override
    public int count() {
        return groupFacade.count();
    }

    @Override
    public List<Group> findByURL(String url) {
        return groupFacade.findByURL(url);
    }

}
